import React from 'react';
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom';
import CourseTable from './components/CourseTable';
import TimeDistribution from './components/TimeDistribution';

const App = () => {
  return (
    <Router>
      <Routes>
        <Route path="/" element={<CourseTable />} /> {/* 主课程表页面 */}
        <Route path="/distribution" element={<TimeDistribution />} /> {/* 时间分布页面 */}
      </Routes>
    </Router>
  );
};

// 默认导出 App
export default App;
